﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.WorkFlow_Processs.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.WorkFlow_Processs
{
    /// <summary>
    /// 流程节点配置表服务接口
    /// </summary>
    public interface IWorkFlow_ProcessAppService : IApplicationService
    {
        #region 流程节点配置表管理

        /// <summary>
        /// 根据查询条件获取流程节点配置表分页列表
        /// </summary>
        Task<PagedResultDto<WorkFlow_ProcessListDto>> GetPagedWorkFlow_ProcesssAsync(GetWorkFlow_ProcessInput input);

        /// <summary>
        /// 通过Id获取流程节点配置表信息进行编辑或修改 
        /// </summary>
        Task<GetWorkFlow_ProcessForEditOutput> GetWorkFlow_ProcessForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取流程节点配置表ListDto信息
        /// </summary>
        Task<WorkFlow_ProcessListDto> GetWorkFlow_ProcessByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改流程节点配置表
        /// </summary>
        Task CreateOrUpdateWorkFlow_ProcessAsync(CreateOrUpdateWorkFlow_ProcessInput input);





        /// <summary>
        /// 新增流程节点配置表
        /// </summary>
        Task<WorkFlow_ProcessEditDto> CreateWorkFlow_ProcessAsync(WorkFlow_ProcessEditDto input);

        /// <summary>
        /// 更新流程节点配置表
        /// </summary>
        Task UpdateWorkFlow_ProcessAsync(WorkFlow_ProcessEditDto input);

        /// <summary>
        /// 删除流程节点配置表
        /// </summary>
        Task DeleteWorkFlow_ProcessAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除流程节点配置表
        /// </summary>
        Task BatchDeleteWorkFlow_ProcessAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取流程节点配置表信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetWorkFlow_ProcessToExcel();

        #endregion

    }
}
